import request from '@/utils/request'

//机器人告警信息
export function getAlarmList(data) {
    return request({
      url: '/cyjqr/cyAlarmInfo/cyLists',
      method: 'get',
      params:data
    })
}

//正常指标范围
export function getCheckList() {
  return request({
    url: '/cyjqr/cyItemSet/cyLists',
    method: 'get'
  })
} 

//获取机器人列表
export function getRobotList() {
  return request({
    url: '/cyjqr/cyRobotConfig/cyListInfos',
    method: 'get'
  })
}

//获取预处理端列表
export function getPreList() {
  return request({
    url: '/cyjqr/cyPrepareConfig/cyListInfos',
    method: 'get'
  })
}

//获取工艺属性
export function GetAttrData() {
  return request({
    url: '/cyjqr/cyPrepareConfig/cyAttrList',
    method: 'get'
  })
}

//获取池体编号
export function GetPoorNoData(data) {
  return request({
    url: '/cyjqr/cyPrepareConfig/cyPondList',
    method: 'post',
    params:data
  })
}

//检测列表
export function GetChkReports(data) {
  return request({
    url: '/cyjqr/cyReportConfig/cyListInfos',
    method: 'get',
    params:data
  })
}

//获取天气信息
export function GetWeather() {
  return request({
    url: '/cyjqr/cyWeatherInfo/cyListInfos',
    method: 'get'
  })
}

//获取视频流
export function GetFlvUrl(data) {
  return request({
    url: '/cyjqr/sunyVideo/getVideoFlv',
    method: 'post',
    params:data
  })
}
//获取对应id的机器人信息
export function GetRobotInfo(id){
  return request({
    url: '/cyjqr/cyRobotConfig/' + id,
    method: 'get'
  })
}

//停止摄像头flv流
export function flvStop(){
  return request({
    url:'/cyjqr/sunyVideo/stopVideoFlv',
    method:'post'
  })
}

//获取机器人运行状态
export function GetCardata(query) {
  return request({
    url: '/cyjqr/cycarcmd/recarmesg',
    method: 'get',
    params: query
  })
}
